﻿namespace Model.Entites
{
    /// <summary>
    /// 留言管理
    /// </summary>
    [SugarTable("T_MsgCtrlHandle")]
    public class TMsgCtrlHandle : ModelBase
    {
        /// <summary>
        /// 留言ID
        /// </summary>
        public int MsgId { get; set; }

        /// <summary>
        /// 回收寄送
        /// </summary>
        [Navigate(NavigateType.OneToOne, nameof(MsgId))]
        public TMsgCtrl MsgCtrl { get; set; }

        #region 处理人

        /// <summary>
        /// 处理人
        /// </summary>
        public int AdminId { get; set; }

        /// <summary>
        /// 处理人
        /// </summary>
        [Navigate(NavigateType.OneToOne, nameof(AdminId))]
        public TAdminInfo AdminInfo { get; set; }

        /// <summary>
        /// 处理人员
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string HandlePerson { get; set; }

        /// <summary>
        /// 处理时间
        /// </summary>
        public DateTime HandleTime { get; set; }

        /// <summary>
        /// 处理描述
        /// </summary>
        [SugarColumn(ColumnDataType = "LONGTEXT", IsNullable = true)]
        public string HandleDesc { get; set; }

        /// <summary>
        /// 处理图片
        /// </summary>
        [SugarColumn(ColumnDataType = "LONGTEXT", IsNullable = true)]
        public string HandlePicture { get; set; }

        /// <summary>
        /// 处理附件
        /// </summary>
        [SugarColumn(ColumnDataType = "LONGTEXT", IsNullable = true)]
        public string HandleAttachment { get; set; }

        ///
        public bool IsDeleted { get; set; }

        #endregion 处理人
    }
}